<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateYxhdInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('yxhd_info', function (Blueprint $table) {
            $table->bigInteger('id')->primary();
            $table->string('sx_class_id', 255)->nullable()->comment('师训班级id');
            $table->string('yxzt', 255)->nullable()->comment('研修主题');
            $table->string('yxxs', 255)->nullable()->comment('研修形式');
            $table->string('yx_type', 255)->nullable()->comment('研修类别');
            $table->string('address', 255)->nullable()->comment('地址');
            $table->string('yx_target', 255)->nullable()->comment('研修目标');
            $table->string('yx_content', 255)->nullable()->comment('研修内容');
            $table->dateTime('start_time')->nullable()->comment('开始时间');
            $table->dateTime('end_time')->nullable()->comment('结束时间');
            $table->string('msg_content', 255)->nullable()->comment('通知内容');
            $table->string('hd_creator', 255)->nullable()->comment('活动主持人');
            $table->string('admin2', 255)->nullable()->comment('协助管理员');
            $table->string('is_open', 255)->nullable()->comment('是否公开');
            $table->string('open_certificate', 255)->nullable()->comment('是否需要公开证明');
            $table->string('hs_status', 255)->nullable()->comment('活动状态');
            $table->string('xd', 255)->nullable()->comment('学段');
            $table->string('subject', 255)->nullable()->comment('学科');
            $table->string('verify_status', 255)->nullable()->comment('审核状态');
            $table->string('creator', 255)->nullable()->comment('创建人');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('yxhd_info');
    }
}
